import { ApiImpl } from 'message-lite';
import { TimerService } from '@manycore/pages-vm-api';

@ApiImpl()
export class TimerImplService extends TimerService {
  timeout(time = 0): Promise<void> {
    return new Promise<void>((resolve) => {
      setTimeout(resolve, time);
    });
  }
}
